package domain;

/**
 * 用户数据的JavaBean
 */
public class User {
    private int id;             // 用户编号
    private String username;    // 用户名
    private String password;    // 用户密码
    private String role;        // 用户角色（普通用户、管理员）

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }
    public void setRole(String role) {
        this.role = role;
    }
}
